package com.newear.constant;


/**
 * Created by josan on 2016/7/20.
 * URL常量
 */
public class URLConstant {
    private static final String RELEASE_URL = "http://47.100.171.176/api";
    private static final String ALPHA_URL = "https://xsd-dev.zhiyuntcm.com/api";
    /**
     * 域名 todo 正式上线时，需要改域名
     */
    public static String BASE_URL = ALPHA_URL;

    /**
     *  切换服务器
     * @param isRelease
     */
    public static void changeServer(boolean isRelease) {
        if (isRelease) {
            BASE_URL = RELEASE_URL;
        } else {
            BASE_URL = ALPHA_URL;
        }
    }
}
